package com.gsy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import com.gsy.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author gsy
 * @since 2022-03-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_notice")
@ApiModel(value="NoticeEntity对象", description="")
public class NoticeEntity extends BaseEntity {


    @ApiModelProperty(name = "公告id", value = "公告id", dataType = "Integer", example = "公告id")
    @TableId(value = "n_id", type = IdType.AUTO)
    private Integer nId;

    @ApiModelProperty(name = "公告标题", value = "公告标题", dataType = "String", example = "公告标题")
    private String title;

    private String content;

    @ApiModelProperty(name = "创建时间", value = "创建时间", dataType = "Date", example = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @ApiModelProperty(name = "通知的班级", value = "通知的班级", dataType = "String", example = "通知的班级")
    private String classes;


}
